#!/bin/bash

#多线程检查在线主机

subnet=10.11.8.

for i in $(seq 254);do
   {
   if  ping -c 2 -W 1 $subnet$i &> /dev/null;then
       echo "$subnet$i"
   fi
   }&
   done
wait
